package com.desay.pangoo.itmt.repository.rag;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.desay.pangoo.itmt.entity.rag.RagRelationTreeEntity;

import java.util.List;

/**
 * @author uidq1163
 */
@Repository
public interface RagRelationTreeEntityRepository extends JpaSpecificationExecutor<RagRelationTreeEntity>,
		PagingAndSortingRepository<RagRelationTreeEntity, Long> {

	RagRelationTreeEntity findByKeyNameAndParentIsNull(String keyName);

	RagRelationTreeEntity findByKeyName(String keyName);

	List<RagRelationTreeEntity> findByParent(RagRelationTreeEntity parent);

}
